package cn.entity;

/**
 * Ordergoods entity. @author MyEclipse Persistence Tools
 */

public class Ordergoods implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private Goods goods;
	private Orders orders;
	private String name;
	private String remark;
	private Float price;
	private Integer amount;

	// Constructors

	/** default constructor */
	public Ordergoods() {
	}

	/** full constructor */
	public Ordergoods(User user, Goods goods, Orders orders, String name,
			String remark, Float price, Integer amount) {
		this.user = user;
		this.goods = goods;
		this.orders = orders;
		this.name = name;
		this.remark = remark;
		this.price = price;
		this.amount = amount;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Orders getOrders() {
		return this.orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

}